package com.seed.core.pojo.seed;

import com.seed.core.enumeration.StatType;

public class Stat {
    private String name;
    private StatType type;
    private String declare; // 统计申明
    private String[] searches; // 统计条件

    public Stat copy() {
        Stat ret = new Stat();
        ret.setName(name);
        ret.setType(type);
        ret.setDeclare(declare);
        ret.setSearches(searches.clone());

        return ret;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public StatType getType() {
        return type;
    }

    public void setType(StatType type) {
        this.type = type;
    }

    public String getDeclare() {
        return declare;
    }

    public void setDeclare(String declare) {
        this.declare = declare;
    }

    public String[] getSearches() {
        return searches;
    }

    public void setSearches(String[] searches) {
        this.searches = searches;
    }
}
